Skip to content

feat: add unified LendingError across contract modules#145

Merged
Smartdevs17 merged 2 commits intoSmartdevs17:mainfrom
DevSolex:feat/issue-24-unified-lending-error
Mar 27, 2026
Merged

feat: add unified LendingError across contract modules#145
Smartdevs17 merged 2 commits intoSmartdevs17:mainfrom
DevSolex:feat/issue-24-unified-lending-error

Conversation

@DevSolex
Copy link
Copy Markdown
Contributor

Summary

  • add a unified LendingError for the public lending contract interface
  • add From conversions from module-specific error enums used by public entrypoints
  • switch public fallible entrypoints in lib.rs to return Result<_, LendingError> and document the public error codes
  • update tests for the new public error code mappings

Verification

  • cargo test -p hello-world

Closes #24

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

@morelucks is attempting to deploy a commit to the smartdevs17's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 27, 2026

@DevSolex Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@DevSolex DevSolex force-pushed the feat/issue-24-unified-lending-error branch from 4811f11 to 390c455 Compare March 27, 2026 07:58
@Smartdevs17 Smartdevs17 merged commit dba71d6 into Smartdevs17:main Mar 27, 2026
2 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Add unified error type across smart contract modules

2 participants